package com.yuandengta.yomall.order.feign;

import com.yuandengta.yomall.order.vo.OrderItemVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * 远程购物车服务接口 {@link CartFeignService}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@FeignClient("yomall-cart")
public interface CartFeignService {

    /**
     * 获取用户的所有购物项
     * @return
     */
    @GetMapping("/cartItems")
    List<OrderItemVO> getCartItems();
}
